/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designpatternspart2.chainOfResponsibilityPattern;
/**
 *
 * @author Dwayne
 */
public abstract class PlanetHandler 
{
    PlanetHandler successor;
    
    public void setSuccessor(PlanetHandler successor)
    {
        this.successor = successor;        
    }    
    public PlanetHandler getSuccessor()
    {
        return successor;
    }
    
    public abstract void handleRequest(PlanetEnum request);
}
